import { T_srv, Tsrv, ifs, ts, tvs, vue } from '@/services';
import { I_cmd, T_cmd } from './command';
import { N_cStph } from './types';

const slotNames = [
  '化学除油1槽',
  '碱腐蚀2槽',
  '热水洗3槽',
  '冷水洗4槽',
  '冷水洗5槽',
  '出光6槽',
  '冷水洗7槽',
  '冷水洗8槽',
  '纯水洗9槽',
  '交换位10槽',
  '硫酸阳极化11槽',
  '硫酸阳极化12槽',
  '冷水洗13槽',
  '冷水洗14槽',
  '铬酸阳极化15槽',
  '回收水洗16槽',
  '冷水洗17槽',
  '冷水洗18槽',
  '纯水洗19槽',
  '铬酸盐封闭20槽',
  '回收水洗21槽',
  '冷水洗22槽',
  '冷水洗23槽',
  '热水封闭24',
  '热水封闭25槽',
  '吹干26槽',
  '烘干27槽',
  '缓存位28',
  '缓存位29',
  '缓存位30',
  '缓存位31',
  '上下料位32'
];

function lineMainConfig(): N_cStph.ProductionLineConfig {
  return {
    id: 'line1',
    name: '1号生产线',
    tankGap: 15,
    rowGap: 130,
    startPosition: { x: 50, y: 130 },
    cranes: [
      {
        id: 1,
        name: '1号行车',
        position: { x: 410, y: 70 },
        width: 85,
        height: 35,
        status: 'idle',
        // load: {
        //   id: 1,
        //   name: '工件1',
        //   width: 30,
        //   height: 20,
        //   position: { x: 498, y: 105 },
        //   targetY: 125,
        //   status: 'idle'
        // },
        workRange: {
          start: 0,
          end: 3000
        },
        safetyDistance: 100
      },
      {
        id: 2,
        name: '2号行车',
        position: { x: 1850, y: 70 },
        // position: { x: 50, y: 70 },
        width: 85,
        height: 35,
        status: 'idle',
        workRange: {
          start: 0,
          end: 3000
        },
        safetyDistance: 100
      }
    ],
    tanks: [
      {
        id: 1,
        workName: '1号工位',
        name: '化学除油',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 50,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my326',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my390',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my422',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my878',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my924',
            conversionRate: 1,
            value: true
          },
          temperature: {
            code: 'my092',
            conversionRate: 0.1,
            value: 0
          },
          liquidLevel: {
            code: 'my073',
            conversionRate: 0.001,
            value: 0
          },
          liquidLevelUpper: {
            code: 'my280',
            conversionRate: 1,
            value: 0
          },
          liquidLevelLower: {
            code: 'my290',
            conversionRate: 1,
            value: 0
          },
          tempRangeLower: {
            code: 'my116',
            conversionRate: 0.1,
            value: 0
          },
          workpieceNum: {
            code: 'my358',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 2,
        workName: '2号工位',
        name: '碱腐蚀',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 130,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my327',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my391',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my423',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my879',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my925',
            conversionRate: 1,
            value: true
          },
          temperature: {
            code: 'my093',
            conversionRate: 0.1,
            value: 0
          },
          liquidLevel: {
            code: 'my074',
            conversionRate: 0.001,
            value: 0
          },
          liquidLevelUpper: {
            code: 'my281',
            conversionRate: 1,
            value: 0
          },
          liquidLevelLower: {
            code: 'my291',
            conversionRate: 1,
            value: 0
          },
          tempRangeLower: {
            code: 'my117',
            conversionRate: 0.1,
            value: 0
          },
          workpieceNum: {
            code: 'my359',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 3,
        workName: '3号工位',
        name: '热水洗',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 210,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my328',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my392',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my424',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my880',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my926',
            conversionRate: 1,
            value: true
          },
          temperature: {
            code: 'my094',
            conversionRate: 0.1,
            value: 0
          },
          conductivity: {
            code: 'my082',
            conversionRate: 1,
            value: 0
          },
          tempRangeLower: {
            code: 'my118',
            conversionRate: 0.1,
            value: 0
          },
          highLiquidLevel: {
            code: 'my956',
            conversionRate: 1,
            value: 0
          },
          lowLiquidLevel: {
            code: 'my957',
            conversionRate: 1,
            value: 0
          },
          workpieceNum: {
            code: 'my360',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 4,
        workName: '4号工位',
        name: '冷水洗',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 290,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my329',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my393',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my425',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my881',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my927',
            conversionRate: 1,
            value: true
          },
          conductivity: {
            code: 'my083',
            conversionRate: 1,
            value: 0
          },
          highLiquidLevel: {
            code: 'my958',
            conversionRate: 1,
            value: 0
          },
          lowLiquidLevel: {
            code: 'my959',
            conversionRate: 1,
            value: 0
          },
          workpieceNum: {
            code: 'my361',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 5,
        workName: '5号工位',
        name: '冷水洗',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 370,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my330',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my394',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my426',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my882',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my928',
            conversionRate: 1,
            value: true
          },
          workpieceNum: {
            code: 'my362',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 6,
        workName: '6号工位',
        name: '出光',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 450,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my331',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my395',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my427',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my883',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my929',
            conversionRate: 1,
            value: true
          },
          liquidLevel: {
            code: 'my075',
            conversionRate: 0.001,
            value: 0
          },
          liquidLevelUpper: {
            code: 'my282',
            conversionRate: 1,
            value: 0
          },
          liquidLevelLower: {
            code: 'my292',
            conversionRate: 1,
            value: 0
          },
          workpieceNum: {
            code: 'my363',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 7,
        workName: '7号工位',
        name: '冷水洗',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 530,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my332',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my396',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my428',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my884',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my930',
            conversionRate: 1,
            value: true
          },
          conductivity: {
            code: 'my084',
            conversionRate: 1,
            value: 0
          },
          highLiquidLevel: {
            code: 'my960',
            conversionRate: 1,
            value: 0
          },
          lowLiquidLevel: {
            code: 'my961',
            conversionRate: 1,
            value: 0
          },
          workpieceNum: {
            code: 'my364',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 8,
        workName: '8号工位',
        name: '冷水洗',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 610,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my333',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my397',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my429',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my885',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my931',
            conversionRate: 1,
            value: true
          },
          workpieceNum: {
            code: 'my365',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 9,
        workName: '9号工位',
        name: '纯 水洗',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 690,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my334',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my398',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my430',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my886',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my932',
            conversionRate: 1,
            value: true
          },
          conductivity: {
            code: 'my085',
            conversionRate: 1,
            value: 0
          },
          highLiquidLevel: {
            code: 'my961',
            conversionRate: 1,
            value: 0
          },
          lowLiquidLevel: {
            code: 'my963',
            conversionRate: 1,
            value: 0
          },
          workpieceNum: {
            code: 'my366',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 10,
        workName: '10号工位',
        name: '交换位',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 770,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my335',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my399',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my431',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my887',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my933',
            conversionRate: 1,
            value: true
          },
          highLiquidLevel: {
            code: 'my964',
            conversionRate: 1,
            value: 0
          },
          lowLiquidLevel: {
            code: 'my965',
            conversionRate: 1,
            value: 0
          },
          workpieceNum: {
            code: 'my367',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 11,
        workName: '11号工位',
        name: '硫酸阳极化',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 850,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my336',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my400',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my432',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my888',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my934',
            conversionRate: 1,
            value: true
          },
          temperature: {
            code: 'my095',
            conversionRate: 0.1,
            value: 0
          },
          liquidLevel: {
            code: 'my076',
            conversionRate: 0.001,
            value: 0
          },
          current: {
            code: 'my129',
            conversionRate: 1,
            value: 0
          },
          voltage: {
            code: 'my126',
            conversionRate: 0.1,
            value: 0
          },
          liquidLevelUpper: {
            code: 'my283',
            conversionRate: 1,
            value: 0
          },
          liquidLevelLower: {
            code: 'my293',
            conversionRate: 1,
            value: 0
          },
          tempRangeLower: {
            code: 'my119',
            conversionRate: 0.1,
            value: 0
          },
          workpieceNum: {
            code: 'my368',
            conversionRate: 1,
            value: 0
          },
          isClose: {
            code: 'my840',
            conversionRate: 1,
            value: false
          }
        },
        status: 'idle'
      },
      {
        id: 12,
        workName: '12号工位',
        name: '硫酸阳极化',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 930,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my337',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my401',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my433',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my889',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my935',
            conversionRate: 1,
            value: true
          },
          temperature: {
            code: 'my096',
            conversionRate: 0.1,
            value: 0
          },
          liquidLevel: {
            code: 'my077',
            conversionRate: 0.001,
            value: 0
          },
          current: {
            code: 'my130',
            conversionRate: 0.1,
            value: 0
          },
          voltage: {
            code: 'my127',
            conversionRate: 0.1,
            value: 0
          },
          liquidLevelUpper: {
            code: 'my284',
            conversionRate: 1,
            value: 0
          },
          liquidLevelLower: {
            code: 'my294',
            conversionRate: 1,
            value: 0
          },
          tempRangeLower: {
            code: 'my120',
            conversionRate: 0.1,
            value: 0
          },
          workpieceNum: {
            code: 'my369',
            conversionRate: 1,
            value: 0
          },
          isClose: {
            code: 'my841',
            conversionRate: 1,
            value: false
          }
        },
        status: 'idle'
      },
      {
        id: 13,
        workName: '13号工位',
        name: '冷水洗',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 1010,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my338',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my402',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my434',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my890',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my936',
            conversionRate: 1,
            value: true
          },
          conductivity: {
            code: 'my086',
            conversionRate: 1,
            value: 0
          },
          highLiquidLevel: {
            code: 'my966',
            conversionRate: 1,
            value: 0
          },
          lowLiquidLevel: {
            code: 'my967',
            conversionRate: 1,
            value: 0
          },
          workpieceNum: {
            code: 'my370',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 14,
        workName: '14号工位',
        name: '冷水洗',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 1090,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my339',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my403',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my435',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my891',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my937',
            conversionRate: 1,
            value: true
          },
          workpieceNum: {
            code: 'my371',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 15,
        workName: '15号工位',
        name: '铬酸阳极化',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 1170,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my340',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my404',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my436',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my892',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my938',
            conversionRate: 1,
            value: true
          },
          temperature: {
            code: 'my097',
            conversionRate: 0.1,
            value: 0
          },
          liquidLevel: {
            code: 'my078',
            conversionRate: 0.001,
            value: 0
          },
          current: {
            code: 'my131',
            conversionRate: 1,
            value: 0
          },
          voltage: {
            code: 'my128',
            conversionRate: 0.1,
            value: 0
          },
          liquidLevelUpper: {
            code: 'my285',
            conversionRate: 1,
            value: 0
          },
          liquidLevelLower: {
            code: 'my295',
            conversionRate: 1,
            value: 0
          },
          tempRangeLower: {
            code: 'my121',
            conversionRate: 0.1,
            value: 0
          },
          workpieceNum: {
            code: 'my372',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 16,
        workName: '16号 工位',
        name: '回收水洗',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 1250,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my341',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my405',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my437',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my893',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my939',
            conversionRate: 1,
            value: true
          },
          workpieceNum: {
            code: 'my373',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 17,
        workName: '17号工位',
        name: '冷水洗',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 1330,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my342',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my406',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my438',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my894',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my940',
            conversionRate: 1,
            value: true
          },
          conductivity: {
            code: 'my087',
            conversionRate: 1,
            value: 0
          },
          highLiquidLevel: {
            code: 'my968',
            conversionRate: 1,
            value: 0
          },
          lowLiquidLevel: {
            code: 'my969',
            conversionRate: 1,
            value: 0
          },
          workpieceNum: {
            code: 'my374',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 18,
        workName: '18号工位',
        name: '冷水洗',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 1410,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my343',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my407',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my439',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my895',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my941',
            conversionRate: 1,
            value: true
          },
          highLiquidLevel: {
            code: 'my970',
            conversionRate: 1,
            value: 0
          },
          lowLiquidLevel: {
            code: 'my971',
            conversionRate: 1,
            value: 0
          },
          workpieceNum: {
            code: 'my375',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 19,
        workName: '19号工位',
        name: '纯水洗',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 1490,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my344',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my408',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my440',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my896',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my942',
            conversionRate: 1,
            value: true
          },
          conductivity: {
            code: 'my088',
            conversionRate: 1,
            value: 0
          },
          highLiquidLevel: {
            code: 'my972',
            conversionRate: 1,
            value: 0
          },
          lowLiquidLevel: {
            code: 'my973',
            conversionRate: 1,
            value: 0
          },
          workpieceNum: {
            code: 'my376',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 20,
        workName: '20号工位',
        name: '铬酸盐封闭',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 1570,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my345',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my409',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my441',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my897',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my943',
            conversionRate: 1,
            value: true
          },
          temperature: {
            code: 'my098',
            conversionRate: 0.1,
            value: 0
          },
          liquidLevel: {
            code: 'my079',
            conversionRate: 0.001,
            value: 0
          },
          liquidLevelUpper: {
            code: 'my286',
            conversionRate: 1,
            value: 0
          },
          liquidLevelLower: {
            code: 'my296',
            conversionRate: 1,
            value: 0
          },
          tempRangeLower: {
            code: 'my122',
            conversionRate: 0.1,
            value: 0
          },
          workpieceNum: {
            code: 'my377',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 21,
        workName: '21号工位',
        name: '回收水洗',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 1650,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my346',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my410',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my442',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my898',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my944',
            conversionRate: 1,
            value: true
          },
          workpieceNum: {
            code: 'my378',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 22,
        workName: '22号工位',
        name: '冷水洗',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 1730,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my347',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my411',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my443',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my899',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my945',
            conversionRate: 1,
            value: true
          },
          conductivity: {
            code: 'my089',
            conversionRate: 1,
            value: 0
          },
          highLiquidLevel: {
            code: 'my974',
            conversionRate: 1,
            value: 0
          },
          lowLiquidLevel: {
            code: 'my975',
            conversionRate: 1,
            value: 0
          },
          workpieceNum: {
            code: 'my379',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 23,
        workName: '23号工位',
        name: '冷水洗',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 1810,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my348',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my412',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my444',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my900',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my946',
            conversionRate: 1,
            value: true
          },
          workpieceNum: {
            code: 'my380',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 24,
        workName: '24号工位',
        name: '热水封闭',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 1890,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my349',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my413',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my445',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my901',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my947',
            conversionRate: 1,
            value: true
          },
          temperature: {
            code: 'my099',
            conversionRate: 0.1,
            value: 0
          },
          liquidLevel: {
            code: 'my080',
            conversionRate: 0.001,
            value: 0
          },
          ph: {
            code: 'my090',
            conversionRate: 0.001,
            value: 0
          },
          liquidLevelUpper: {
            code: 'my287',
            conversionRate: 1,
            value: 0
          },
          liquidLevelLower: {
            code: 'my297',
            conversionRate: 1,
            value: 0
          },
          tempRangeLower: {
            code: 'my123',
            conversionRate: 0.1,
            value: 0
          },
          workpieceNum: {
            code: 'my381',
            conversionRate: 1,
            value: 0
          },
          isClose: {
            code: 'my842',
            conversionRate: 1,
            value: false
          }
        },
        status: 'idle'
      },
      {
        id: 25,
        workName: '25号工位',
        name: '热水封闭',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 1970,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my350',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my414',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my446',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my902',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my948',
            conversionRate: 1,
            value: true
          },
          temperature: {
            code: 'my100',
            conversionRate: 0.1,
            value: 0
          },
          liquidLevel: {
            code: 'my081',
            conversionRate: 0.001,
            value: 0
          },
          ph: {
            code: 'my091',
            conversionRate: 0.001,
            value: 0
          },
          liquidLevelUpper: {
            code: 'my288',
            conversionRate: 1,
            value: 0
          },
          liquidLevelLower: {
            code: 'my298',
            conversionRate: 1,
            value: 0
          },
          tempRangeLower: {
            code: 'my124',
            conversionRate: 0.1,
            value: 0
          },
          workpieceNum: {
            code: 'my382',
            conversionRate: 1,
            value: 0
          },
          isClose: {
            code: 'my843',
            conversionRate: 1,
            value: false
          }
        },
        status: 'idle'
      },
      {
        id: 26,
        workName: '26号工位',
        name: '吹干',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 2050,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my351',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my415',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my447',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my903',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my949',
            conversionRate: 1,
            value: true
          },
          workpieceNum: {
            code: 'my383',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 27,
        workName: '27号工位',
        name: '烘干',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 2130,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my352',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my416',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my448',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my904',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my950',
            conversionRate: 1,
            value: true
          },
          temperature: {
            code: 'my101',
            conversionRate: 0.1,
            value: 0
          },
          tempRangeLower: {
            code: 'my125',
            conversionRate: 0.1,
            value: 0
          },
          workpieceNum: {
            code: 'my384',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'idle'
      },
      {
        id: 28,
        workName: '28号工位',
        name: '缓存位',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 2210,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my353',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my417',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my449',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my905',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my951',
            conversionRate: 1,
            value: true
          },
          workpieceNum: {
            code: 'my385',
            conversionRate: 1,
            value: 0
          },
          isClose: {
            code: 'my836',
            conversionRate: 1,
            value: false
          }
        },
        status: 'cache'
      },
      {
        id: 29,
        workName: '29号工位',
        name: '缓存位',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 2290,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my354',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my418',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my450',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my906',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my952',
            conversionRate: 1,
            value: true
          },
          workpieceNum: {
            code: 'my386',
            conversionRate: 1,
            value: 0
          },
          isClose: {
            code: 'my837',
            conversionRate: 1,
            value: false
          }
        },
        status: 'cache'
      },
      {
        id: 30,
        workName: '30号工位',
        name: '缓 存位',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 2370,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my355',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my419',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my451',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my907',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my953',
            conversionRate: 1,
            value: true
          },
          workpieceNum: {
            code: 'my387',
            conversionRate: 1,
            value: 0
          },
          isClose: {
            code: 'my838',
            conversionRate: 1,
            value: false
          }
        },
        status: 'cache'
      },
      {
        id: 31,
        workName: '31号工位',
        name: '缓存位',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 2450,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my356',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my420',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my452',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my908',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my954',
            conversionRate: 1,
            value: true
          },
          workpieceNum: {
            code: 'my388',
            conversionRate: 1,
            value: 0
          },
          isClose: {
            code: 'my839',
            conversionRate: 1,
            value: false
          }
        },
        status: 'cache'
      },
      {
        id: 32,
        workName: '32号工位',
        name: '上下料位',
        width: 85,
        height: 155,
        depth: 40,
        position: {
          x: 2530,
          y: 50
        },
        liquid: {
          name: '电镀液',
          color: '#2196f3'
        },
        params: {
          hangGroupID: {
            code: 'my357',
            conversionRate: 1,
            value: 0
          },
          setTime: {
            code: 'my421',
            conversionRate: 1,
            value: 0
          },
          workTime: {
            code: 'my453',
            conversionRate: 1,
            value: 0
          },
          liquidConSwitch: {
            code: 'my909',
            conversionRate: 1,
            value: true
          },
          dischargeSwitch: {
            code: 'my955',
            conversionRate: 1,
            value: true
          },
          workpieceNum: {
            code: 'my389',
            conversionRate: 1,
            value: 0
          }
        },
        status: 'cache'
      }
    ],
    rows: [],
    tanksPerRow: 0,
    railHeights: [50, 80],
    workpieces: []
  } as N_cStph.ProductionLineConfig;
}

function lineHeaderConfig(): Array<any> {
  return [
    // 上料信息
    {
      column: {
        key: 'moldRecordInfo',
        title: '上料信息'
      },
      cases: [
        {
          type: 'text',
          key: 'moldRecordNum',
          title: '上料记录编号',
          ecCode: 'my161',
          value: 1
        },
        {
          type: 'textSwitch',
          key: 'feibaType',
          trueText: '特殊飞巴',
          falseText: '普通飞巴',
          ecCode: 'mySupplement001',
          value: false
        },
        {
          type: 'textSwitch',
          key: 'waitMaterial',
          falseText: '等待上料！',
          trueText: '上料完成！',
          ecCode: 'mySupplement002',
          value: false
        },
        {
          type: 'textSwitch',
          key: 'waitHGE',
          falseText: '等待挂具！',
          trueText: '请上料！',
          ecCode: 'my854',
          value: false
        }
      ]
    },
    // 任务信息
    {
      column: {
        key: 'task',
        title: '任务信息'
      },
      cases: [
        {
          type: 'text',
          key: 'doneCount',
          title: '已完成挂组数',
          value: 0
        },
        {
          type: 'text',
          key: 'workCount',
          title: '加工中挂组数',
          value: 0
        },
        {
          type: 'text',
          key: 'waitCount',
          title: '待加工挂组数',
          value: 0
        }
      ]
    },
    // 安全警报
    {
      column: {
        key: 'alert',
        title: '安全警报'
      },
      cases: [
        // {
        //   content: '2号行车暂停',
        //   alarmId: '581693885119262720',
        //   alarmRowID: '611786095973961728',
        //   equipFunName: 'cDrivingSet'
        // },
        // {
        //   content: '酸风机加药桶液位低！',
        //   alarmId: '581693885370920960',
        //   alarmRowID: '633598665080770560',
        //   equipFunName: 'cWasteGasTreatment'
        // }
      ]
    },
    // 下料信息
    {
      column: {
        key: 'unmoldRecordInfo',
        title: '下料信息'
      },
      cases: [
        {
          type: 'text',
          key: 'unmoldRecordNum',
          title: '下料记录编号',
          ecCode: 'my162',
          value: 1
        },
        {
          type: 'textSwitch',
          key: 'waitHGE',
          falseText: '等待挂具！',
          trueText: '请下料！',
          ecCode: 'mySupplement003',
          active: false
        },
        {
          type: 'textSwitch',
          key: 'waitMaterial',
          falseText: '等待下料！',
          trueText: '下料完成！',
          ecCode: 'my853',
          active: false
        }
      ]
    }
  ];
}

function formConfig(): N_cStph.formInfo[] {
  return [
    {
      type: 'button',
      key: 'stepOut',
      btnType: 'primary',
      icon: '',
      title: '序号步骤取出',
      ecCode: 'my3843',
      value: '',
      disabled: true
    },
    {
      type: 'button',
      key: 'stepWrite',
      btnType: 'success',
      icon: '',
      title: '序号步骤写入',
      ecCode: 'my3844',
      value: '',
      disabled: true
    },
    {
      type: 'input',
      key: 'queryNum',
      icon: '',
      title: '需要查询的序号:',
      ecCode: 'my3845',
      value: null,
      disabled: false
    },
    {
      type: 'input',
      key: 'currentStepNum',
      icon: '',
      title: '当前运行的步骤号:',
      ecCode: 'my3846',
      value: null,
      disabled: true
    },
    {
      type: 'input',
      key: 'targetStepNum',
      icon: '',
      title: '指定运行步骤号:',
      ecCode: 'my3847',
      value: null,
      disabled: false
    }
  ];
}
const craneControlConfig = (): N_cStph.craneControlConfig[] => [
  {
    id: 1,
    name: '一号行车',
    logoInfo: '等待标志',
    promptMessage: '提示消息',
    params: {
      actualStation: {
        label: '实工位',
        code: 'my012',
        value: 0
      },
      preStation: {
        label: '预工位',
        code: 'my011',
        value: 0
      },
      workpiece: {
        label: '工件号',
        code: 'my015',
        value: 0
      },
      targetPosition: {
        label: '目标位',
        code: 'my013',
        value: 0
      },

      errorSlotNum: {
        label: '错误槽号',
        code: 'my018',
        value: null
      },
      overflowValue: {
        label: '溢出值',
        code: 'mySupplement004',
        value: null
      },
      autoProducingFlag: {
        label: '自动生产标志',
        code: 'my800',
        value: true
      },
      forward: {
        label: '前进',
        code: 'my804',
        value: false
      },
      backward: {
        label: '后退',
        code: 'my805',
        value: false
      },
      horizontalarrowed: {
        label: '水平到位',
        code: 'my815',
        value: null
      },
      up: {
        label: '上',
        code: 'my806',
        value: false
      },
      down: {
        label: '下',
        code: 'my807',
        value: false
      },
      horizontalSlowFlag: {
        label: '水平慢速标志',
        code: 'my808',
        value: 0
      },
      wait: {
        label: '等待',
        code: 'my809',
        value: 0
      },
      pauseFlag: {
        label: '暂停标志',
        code: 'my801',
        value: 0
      },
      readStationError: {
        label: '读取工位错误',
        code: 'my795',
        value: false
      },
      groupId: {
        label: '挂组ID',
        code: 'my324',
        value: 0
      }
    },
    controlBtns: [
      {
        type: 'stop',
        label: '停止',
        btnType: 'error',
        loading: false,
        code: 'my802'
      },
      {
        type: 'release',
        label: '解除',
        btnType: 'success',
        loading: false,
        code: 'my592'
      },
      {
        type: 'pause',
        label: '暂停',
        btnType: 'warning',
        loading: false,
        code: 'my801'
      },
      {
        type: 'start',
        label: '启动',
        btnType: 'primary',
        loading: false,
        code: 'my770'
      }
    ]
  },
  {
    id: 2,
    name: '二号行车',
    logoInfo: '等待标志',
    promptMessage: '提示消息',
    params: {
      actualStation: {
        label: '实工位',
        code: 'my022',
        value: 0
      },
      preStation: {
        label: '预工位',
        code: 'my021',
        value: 0
      },
      workpiece: {
        label: '工件号',
        code: 'my025',
        value: 0
      },
      targetPosition: {
        label: '目标位',
        code: 'my023',
        value: 0
      },

      errorSlotNum: {
        label: '错误槽号',
        code: 'my028',
        value: null
      },
      overflowValue: {
        label: '溢出值',
        code: 'mySupplement005',
        value: null
      },
      autoProducingFlag: {
        label: '自动生产标志',
        code: 'my818',
        value: true
      },
      forward: {
        label: '前进',
        code: 'my822',
        value: 0
      },
      backward: {
        label: '后退',
        code: 'my823',
        value: 0
      },
      horizontalarrowed: {
        label: '水平到位',
        code: 'my833',
        value: null
      },
      up: {
        label: '上',
        code: 'my824',
        value: 0
      },
      down: {
        label: '下',
        code: 'my825',
        value: 0
      },
      horizontalSlowFlag: {
        label: '水平慢速标志',
        code: 'my826',
        value: 0
      },
      wait: {
        label: '等待',
        code: 'my827',
        value: 0
      },
      pauseFlag: {
        label: '暂停标志',
        code: 'my819',
        value: 0
      },
      readStationError: {
        label: '读取工位错误',
        code: 'my796',
        value: false
      },
      groupId: {
        label: '挂组ID',
        code: 'my325',
        value: 0
      }
    },
    controlBtns: [
      {
        type: 'stop',
        label: '停止',
        btnType: 'error',
        loading: false,
        code: 'my820'
      },
      {
        type: 'release',
        label: '解除',
        btnType: 'success',
        loading: false,
        code: 'my608'
      },
      {
        type: 'pause',
        label: '暂停',
        btnType: 'warning',
        loading: false,
        code: 'my819'
      },
      {
        type: 'start',
        label: '启动',
        btnType: 'primary',
        loading: false,
        code: 'my771'
      }
    ]
  }
];

// 自动按钮面板
const autoButtonPanel = (): N_cStph.autoBtn[] => [
  {
    type: 'button',
    btnType: 'primary',
    key: 'autoPreparation',
    title: '自动准备',
    show: true,
    ecCode: 'my769',
    icon: ''
  },
  {
    type: 'button',
    btnType: 'success',
    key: 'autoStart',
    title: '自动启动',
    show: true,
    ecCode: 'my774',
    icon: ''
  },
  {
    type: 'button',
    btnType: 'error',
    key: 'autoShutdown',
    title: '下位停机',
    show: true,
    ecCode: 'my860',
    icon: ''
  },
  {
    type: 'button',
    btnType: 'warning',
    key: 'specifyRunningSteps',
    title: '指定运行步',
    show: true,
    ecCode: '',
    icon: ''
  }
];

// 设备面板
const devicePanels = (): N_cStph.DevicePanelConfig[] => [
  {
    id: 1,
    name: '行车设置',
    icon: 'wy-qiaoshiqizhongji-xian',
    funName: 'cDrivingSet',
    bgColor: 'linear-gradient(135deg, #409EFF 0%, #3375FF 100%)'
  },
  {
    id: 2,
    name: '槽体设置',
    icon: 'wy-ducao',
    funName: 'cSlotBodySet',
    bgColor: 'linear-gradient(135deg, #67C23A 0%, #5DAF34 100%)'
  },
  {
    id: 3,
    name: '飞巴设置',
    icon: 'wy-icon_xiegan',
    funName: 'cFeibaRSet',
    bgColor: 'linear-gradient(135deg, #E6A23C 0%, #D99A36 100%)'
  },
  {
    id: 4,
    name: '整流器',
    icon: 'wy-rectifier',
    funName: 'cRectifierSettings',
    bgColor: 'linear-gradient(135deg, #F56C6C 0%, #E15F5F 100%)'
  },
  {
    id: 5,
    name: '添加与补水设置',
    icon: 'wy-dianre-bushui',
    funName: 'cAddHydrationSettings',
    bgColor: 'linear-gradient(135deg, #909399 0%, #82858A 100%)'
  },
  {
    id: 6,
    name: '分析仪',
    icon: 'wy-shuizhifenxiyi',
    funName: 'cAnalyzer',
    bgColor: 'linear-gradient(135deg, #9C27B0 0%, #8E24AA 100%)'
  },
  {
    id: 7,
    name: '锅炉',
    icon: 'wy-guolu01',
    funName: 'cBoilerControl',
    bgColor: 'linear-gradient(135deg, #FF9800 0%, #F57C00 100%)'
  },
  {
    id: 8,
    name: '流量计',
    icon: 'wy-liuliangji',
    funName: 'cFlowMonitor',
    bgColor: 'linear-gradient(135deg, #00BCD4 0%, #00ACC1 100%)'
  },
  {
    id: 9,
    name: '废气处理',
    icon: 'wy-feiqijiance',
    funName: 'cWasteGasTreatment',
    bgColor: 'linear-gradient(135deg, #009688 0%, #00897B 100%)'
  }
];

type CraneConfig = N_cStph.CraneConfig;
type ProductionLineConfig = N_cStph.ProductionLineConfig;
type TankConfig = N_cStph.TankConfig;
type WorkpieceConfig = N_cStph.WorkpieceConfig;
type TankParams = N_cStph.TankParams;
type TankParamLimit = N_cStph.TankParamLimit;
type TankAnimation = N_cStph.TankAnimation;
type ButtonConfig = N_cStph.ButtonConfig;
export {
  ButtonConfig,
  CraneConfig,
  I_cmd,
  N_cStph,
  ProductionLineConfig,
  T_cmd,
  T_srv,
  TankAnimation,
  TankConfig,
  TankParamLimit,
  TankParams,
  Tsrv,
  WorkpieceConfig,
  autoButtonPanel,
  craneControlConfig,
  devicePanels,
  formConfig,
  ifs,
  lineHeaderConfig,
  lineMainConfig,
  ts,
  tvs,
  vue
};
